package com.gem.talkbase.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.Toast;


import com.gem.talkbase.R;
import com.gem.talkbase.widget.OnChangedListener;
import com.gem.talkbase.widget.SlipButton;

public class Setinformation_setting_message extends Activity implements OnChangedListener{




	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.setinformation_setting_message);

		SlipButton myBtn =(SlipButton) findViewById(R.id.slipBtn);//获得指定控件  
		myBtn.SetOnChangedListener(this);//为控件设置监听器  

		SlipButton myBtn1 =(SlipButton) findViewById(R.id.slipBtn1);//获得指定控件  
		myBtn.SetOnChangedListener(new OnChangedListener() {

			@Override
			public void OnChanged(boolean CheckState) {
				// TODO Auto-generated method stub


				if(CheckState){
					
				}  
					//Toast.makeText(Setinformation_setting_message.this,"打开了..." , Toast.LENGTH_SHORT).show();  
				else{
					
				} 
					//Toast.makeText(Setinformation_setting_message.this,"关闭了..." , Toast.LENGTH_SHORT).show();  

			}
		});//为控件设置监听器  

		SlipButton myBtn2 =(SlipButton) findViewById(R.id.slipBtn2);//获得指定控件  
		myBtn.SetOnChangedListener(new OnChangedListener() {

			@Override
			public void OnChanged(boolean CheckState) {
				// TODO Auto-generated method stub
				if(CheckState) 
					Toast.makeText(Setinformation_setting_message.this,"打开了..." , Toast.LENGTH_SHORT).show();  
				else  
					Toast.makeText(Setinformation_setting_message.this,"关闭了..." , Toast.LENGTH_SHORT).show();  


			}
		});//为控件设置监听器 

		SlipButton myBtn3 =(SlipButton) findViewById(R.id.slipBtn3);//获得指定控件  
		myBtn.SetOnChangedListener(new OnChangedListener() {

			@Override
			public void OnChanged(boolean CheckState) {
				// TODO Auto-generated method stub
				if(CheckState)  
					Toast.makeText(Setinformation_setting_message.this,"打开了..." , Toast.LENGTH_SHORT).show();  
				else  
					Toast.makeText(Setinformation_setting_message.this,"关闭了..." , Toast.LENGTH_SHORT).show();  

			}
		});//为控件设置监听器  

	}



	@Override
	public void OnChanged(boolean CheckState) {
		// TODO Auto-generated method stub
		if(CheckState)  
			Toast.makeText(Setinformation_setting_message.this,"打开了..." , Toast.LENGTH_SHORT).show();  
		else  
			Toast.makeText(Setinformation_setting_message.this,"关闭了..." , Toast.LENGTH_SHORT).show();  

	}
}